package com.dai.designpattern.singleton.lazy;

import java.lang.reflect.Constructor;

/**
 * @author daijiyong
 */
public class ReflectTest {
    public static void main(String[] args) {
        try {
            Class<?> calzz = LazyStaticInnerClassSingleton.class;
            Constructor c = calzz.getDeclaredConstructor(null);
            c.setAccessible(true);
            Object instance = c.newInstance();
            System.out.println(instance);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
